package com.xucy.springboot.annotationaop;

import lombok.Data;

import java.lang.reflect.Field;

/**
 * @Author xucy
 * @Date 2019-08-01 15:43
 * @Description
 **/

@Data
public class User {

    @LogNo
    String id;

    String userName;

    public static void main(String[] args) {
        Field[] fields=User.class.getDeclaredFields();

        for (Field field:fields){
            System.out.println(field.getName());
        }
    }
}
